package com.example.navigation.api.navigation

import com.example.navigation.api.ResponseData
import dagger.hilt.android.scopes.ViewModelScoped
import javax.inject.Inject

/**
 * Created with IntelliJ IDEA.
 * @Author: Liao Run
 * @Date: 2024-06-10 2:10
 * @Description:
 **/
@ViewModelScoped
class NavigationRepository @Inject constructor(private val navigationApi: NavigationApi) {

    suspend fun searchNavigationData(params: NavigationApi.SearchNavigationDataParams): ResponseData<Lines> {
        return navigationApi.searchNavigationData(params.beDate, params.endDate, params.deviceId, params.lx)
    }
}